#ifndef MAKEACCOUNTREQUEST_H
#define MAKEACCOUNTREQUEST_H

#include "network/networkgetjsonrequest.h"


#include <QObject>

namespace Network {
class JSONResponse;
}

class MakeAccountResponse;
class MakeAccountRequest : public Network::GetJSONRequest
{
    Q_OBJECT
public:
    MakeAccountRequest(const QString &phone,
                       const QString &code);

    virtual ~MakeAccountRequest();

private:
    MakeAccountResponse *m_response;
    QString m_phone;
    QString m_code;

private:
    Network::JSONResponse &jsonResponse();

public:
    const Network::JSONResponse &jsonResponse() const;
    QUrl url() const;

};

#endif // MAKEACCOUNTREQUEST_H
